#pragma once
class CMapCoding
{

public:

	unsigned char m_cbEncodeRound ;
	unsigned char m_cbDecodeRound ;

	void Reset();

	bool Encode(unsigned char* pDataBuffer,
		const int& wDataSize,
		unsigned char& cbVerifyCode);

	bool Decode(unsigned char* pDataBuffer,
		const int& wDataSize,
		unsigned char& cbVerifyCode);

	unsigned char EncodeByte(const unsigned char cbData);


	unsigned char DecodeByte(const unsigned char cbData);

	CMapCoding();
	~CMapCoding();
};

